package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 核酸信息对象 ptesting
 *
 * @author ruoyi
 * @date 2022-04-16
 */
public class Ptesting extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     * 检测时间  饶河导入使用
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date detectionTime;

    /**
     * 铁力拉去核算信息使用
     */
    private String detectionTimeStr;
    /**
     * 检测开始时间
     */
    private String starTime;

    /**
     * 检测结束时间
     */
    private String entTime;

    /**
     * 检测地点
     */
    @Excel(name = "检测地点")
    private String detectionAddress;

    /**
     * 检测结果 阴性是1,阳性是2
     */
    @Excel(name = "检测结果 阴性是1,阳性是2")
    private Long detectionResult;

    /**
     * 检测机构id
     */
    @Excel(name = "检测机构id")
    private Integer organizationId;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String personName;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String cardId;
    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private Long phoneNumber;


    /**
     * 重点人群id
     */
    @Excel(name = "重点人群id")
    private Long personId;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    private Long deptId;

    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String DeptName;

    /**
     * 类别id
     */
    @Excel(name = "类别id")
    private Long detectionCycleId;


    /**
     * 状态1已检测,2未检测
     */
    private Long state = 1L;

    /**
     * $table.subTable.functionName信息
     */
    private List<DetectionCycle> detectionCycleList;

    public String getDetectionTimeStr() {
        return detectionTimeStr;
    }

    public void setDetectionTimeStr(String detectionTimeStr) {
        this.detectionTimeStr = detectionTimeStr;
    }

    public List<DetectionCycle> getDetectionCycleList() {
        return detectionCycleList;
    }

    public String getDeptName() {
        return DeptName;
    }

    public void setDeptName(String deptName) {
        DeptName = deptName;
    }

    public Long getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(Long phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public void setDetectionCycleList(List<DetectionCycle> detectionCycleList) {
        this.detectionCycleList = detectionCycleList;
    }

    public String getEntTime() {
        return entTime;
    }

    public void setEntTime(String entTime) {
        this.entTime = entTime;
    }

    public String getStarTime() {
        return starTime;
    }

    public void setStarTime(String starTime) {
        this.starTime = starTime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDetectionTime(Date detectionTime) {
        this.detectionTime = detectionTime;
    }

    public Date getDetectionTime() {
        return detectionTime;
    }

    public void setDetectionAddress(String detectionAddress) {
        this.detectionAddress = detectionAddress;
    }

    public String getDetectionAddress() {
        return detectionAddress;
    }

    public void setDetectionResult(Long detectionResult) {
        this.detectionResult = detectionResult;
    }

    public Long getDetectionResult() {
        return detectionResult;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }

    public Integer getOrganizationId() {
        return organizationId;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonName() {
        return personName;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getCardId() {
        return cardId;
    }

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public Long getPersonId() {
        return personId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setDetectionCycleId(Long detectionCycleId) {
        this.detectionCycleId = detectionCycleId;
    }

    public Long getDetectionCycleId() {
        return detectionCycleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("detectionTime", getDetectionTime()).append("detectionAddress", getDetectionAddress()).append("detectionResult", getDetectionResult()).append("organizationId", getOrganizationId()).append("personName", getPersonName()).append("cardId", getCardId()).append("createTime", getCreateTime()).append("personId", getPersonId()).append("deptId", getDeptId()).append("detectionCycleId", getDetectionCycleId()).toString();
    }

    public Ptesting(String starTime, String entTime, Long personId) {
        this.starTime = starTime;
        this.entTime = entTime;
        this.personId = personId;
    }

    public Ptesting(String starTime, String entTime) {
        this.starTime = starTime;
        this.entTime = entTime;
    }

    public Ptesting() {
    }
}
